<%@page import="java.util.LinkedList"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Calendar"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="GetData.DataWS"%>
<%@page import="DTO.monhoc"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>




<h2>Danh sách môn học Khoa CÔNG NGHỆ PHẦN MỀM</h2>  
<div style="width: 100%;">

</div>
<form action="delete_subject_list.jsp" method="post">
<table id="rounded-corner" summary="">
    <thead>
    <tr>
            <th scope="col" class="rounded-company">  </th>
            <th scope="col" class="rounded">Mã môn học  </th>
            <th scope="col" class="rounded">Tên môn học </th>
            <th scope="col" class="rounded">Tổng số tín chỉ </th>
            <th scope="col" class="rounded">Số TC lý thuyết </th>
            <th scope="col" class="rounded">Số TC thực hành </th>
            <th scope="col" class="rounded">Môn tiên quyết</th>
             <th scope="col" class="rounded">Edit</th>
              <th scope="col" class="rounded-q4">Delete </th>
        </tr>
    </thead>       
    <tbody> 
        
    
        <%
DataWS a=new DataWS();
List<dktc_ws.Monhoc> mh =new LinkedList<dktc_ws.Monhoc>();
mh = a.laydanhsachmonhoc("");

for(int i=0;i<mh.size();i++)
       {
    dktc_ws.Monhoc item=mh.get(i);
    //out.print(temp.getHoten());
%>

        <tr>
        	<td><input type="checkbox" name="DeletedSubject" value ="<%=item.getMamh()%>" /></td> 
                <td><%=item.getMamh()%></td> 
            <td><%=item.getTenmh()%></td> 
            <td><%=item.getTongsotc() %></td> 
            <td><%=item.getTclythuyet()%></td>
             <td><%=item.getTcthuchanh() %></td>
             <td><a href="?page=edit_required_subject&id=<%=item.getMamh()%>">Chi tiết</a></td>
            <td><a href="?page=edit_subject&id=<%=item.getMamh()%>"><img src="images/user_edit.png" alt="" title="" border="0" /></a></td> 
            <td><a href="?page=delete_subject&id=<%=item.getMamh()%>" class="ask"><img src="images/trash.png" alt="" title="" border="0" /></a></td> 
        </tr>      
    	      
        <%}%>         
    </tbody>
</table>
<a href="?page=add_subject" class="bt_green"><span class="bt_green_lft"></span><strong>Thêm môn học mới</strong><span class="bt_green_r"></span></a> 
     <!--a href="#" class="bt_blue"><span class="bt_blue_lft"></span><strong>View all items from category</strong><span class="bt_blue_r"></span></a--> 

</form>